package com.lyf.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.lyf.dao.base.BaseDao;
import com.lyf.pojo.Task;

@Repository
public class TaskDao extends BaseDao<Task, String>{

	public List<Task> findUncompleted() {
		String hql = "from Task where complete = false";
		return findByAllHql(hql);
	}
	
	public List<Task> findCompleted(){
		String hql = "from Task where complete = true";
		return findByAllHql(hql);
	}

	
	
}
